
package com.ruoyi.client.pojo.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 更改收货地址param
 */
@Data
@ApiModel(description = "更新收货地址参数")
public class AddressUpdateForm {

    @ApiModelProperty("地址id")
    private Long id;

    @ApiModelProperty(value = "收件人名称", position = 1)
    private String name;

    @ApiModelProperty(value = "收件人联系方式", position = 2)
    private String tel;

    @ApiModelProperty(value = "是否默认地址 false-不是 true-是", position = 3, required = true)
    @NotNull(message = "是否默认地址选项不能能空")
    private Boolean isDefault;

    @ApiModelProperty(value = "省",position = 4)
    private String province;

    @ApiModelProperty(value = "市",position = 5)
    private String city;

    @ApiModelProperty(value = "区/县",position = 6)
    private String county;

    @ApiModelProperty(value = "详细地址",position = 7)
    private String detail;

    @ApiModelProperty(value = "区域编码",position = 8)
    private String areaCode;

    @ApiModelProperty(value = "邮政编码",position = 9)
    private String postalCode;

    @ApiModelProperty(value = "区域",position = 10)
    private String area;
}
